package com.jamal2362.apktool.task;

import android.content.Context;
import java.io.File;
import java.util.List;
import com.jamal2362.apktool.R;
import com.jamal2362.apktool.fragment.files.Refreshable;
import com.jamal2362.apktool.util.Zipper;
import java.util.ArrayList;

public class ZipTask extends AbstractTask
{
	@Override
	protected boolean process(File f)
	{
		return false;
	}
	
	private Context context;
	private String name;
	private List<File> mFiles;

	public ZipTask(Context ctx, String name, Refreshable refresh)
	{
		super(ctx, refresh);
		this.context = ctx;
		this.name = name;
		this.mFiles = new ArrayList<File>();
	}

	@Override
	protected int getTitle()
	{
		return R.string.mcompression;
	}

	@Override
	protected Boolean doInBackground(File[] p1)
	{
		info(R.string.mplease_wait, (Object) null);
		Zipper.zip(p1, name);
		return true;
	}

	@Override
	protected boolean shouldShowFinishDialog()
	{
		return false;
	}

	@Override
	protected void onPostExecute(Boolean result)
	{
		super.onPostExecute(result);
	}
}
